import com.google.appengine.api.datastore.Entity
import cn.xiazhengxin.blog.util.ThirdUtils as tu

def entity = new Entity("user")

entity << params

entity.regTime = tu.getFormattedTime() 

entity.save()

request['message'] = "用户添加成功!"

redirect "/userlist/1"